package com.oceansoft.mobile.econsole.mybaties.mapper;

import com.oceansoft.mobile.econsole.mybaties.entity.AbsEntity;

import java.util.List;

/**
 * 映射器基类
 *
 * @param <T>
 * @param <PK>
 */
public interface BaseMapper<T extends AbsEntity, PK extends java.io.Serializable> {

    PK insert(T model);

    void delete(PK modelPK);

    T load(PK modelPK);

    void update(T model);

    void updateSelective(T model);

    int countAll();

    List<T> findAll();

    List<PK> findAllIds();
}
